package com.atguigu.java.ai.langchain4j;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

/**
 * @Author: zhang
 * @Date: 2025/8/30 10:59
 * @Description:
 **/
@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,chatModel = "qwenChatModel",chatMemoryProvider = "chatMemoryProvider")
public interface Assistant {
    String chat (String userMessage);

    String chat (@MemoryId Long memory,@UserMessage String userMessage);
}
